//
//  LevelCollectionViewCell.m
//  Brand
//
//  Created by Woody Yan on 5/27/14.
//  Copyright (c) 2014 Faker. All rights reserved.
//

#import "LevelCollectionViewCell.h"
#import "config.h"

@implementation LevelCollectionViewCell

/*
 @property (nonatomic, strong) UIImageView * wenyaoImage;
 @property (nonatomic, strong) UIImageView * wenyaoBackgroud;
 @property (nonatomic, strong) UILabel     * wenyaoType;
 @property (nonatomic, strong) UILabel     * wenyaoName;
 [self.contentView insertSubview:_choosedIndicator aboveSubview:_imageView];
 */

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.wenyaoBackgroud = [[UIImageView alloc] initWithFrame:CGRectMake(5, 10, 80, 80)];
        self.wenyaoImageView = [[UIImageView alloc] initWithFrame:CGRectInset(self.wenyaoBackgroud.frame, 10, 10)];
        self.wenyaoType = [[UILabel alloc] initWithFrame:CGRectMake(5, 90, 80, 20)];
        self.wenyaoType.textAlignment = NSTextAlignmentCenter;
        self.wenyaoType.font = [UIFont systemFontOfSize:12];
        self.wenyaoType.textColor = [UIColor whiteColor];
        self.wenyaoType.backgroundColor = [UIColor clearColor];

        self.wenyaoName = [[UILabel alloc] initWithFrame:CGRectMake(5, 110, 80, 20)];
        self.wenyaoName.textAlignment = NSTextAlignmentCenter;
        self.wenyaoName.font = [UIFont systemFontOfSize:12];
        self.wenyaoName.textColor = [UIColor whiteColor];
//        self.wenyaoName.backgroundColor = ColorWithHexAlpha(0x55CC93, 1.0f);
        self.wenyaoName.backgroundColor = ColorWithHex(0X235366);
        
        self.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:self.wenyaoBackgroud];
        [self.contentView addSubview:self.wenyaoImageView];
        [self.contentView addSubview:self.wenyaoType];
        [self.contentView addSubview:self.wenyaoName];
    }
    return self;
    
}


@end
